|
|
|
|
|
|
|
If you happen to receive an error message, you can use all of Visual Basic's debugging tools to track down and eliminate the errors. Using the Visual Basic debug environment, you can set breakpoints in your code, set Watches to observe the values of variables, and step through the code line by line to locate an error. |
|
|
|
|
|
|
|
|
Caution .Terminating your application without closing Internet Explorer may cause errors in Internet Explorer. Therefore, you should close and restart Internet Explorer each time you run your document. |
|
|
|
|
|
|
|
|
|
After you are satisfied that the ActiveX document works properly, you are ready to compile the document. Choosing File, Make from the Visual Basic menu will open the Make Project dialog box shown in Figure 21.5 to enable you to specify the name and location of the completed .EXE or .DLL file. |
|
|
|
|
|
|
|
|
Figure 21.5.
Using the Make Project dialog box to compile the
ActiveX document. |
|
|
|
|
|
|
|
|
The name of the .VBD file is based on the Name property of the UserDocument object. This file is placed in the same folder that you specified for the .EXE file. After compilation, your document can be used in any of the applications that support ActiveX documents. If you want to put your ActiveX Document on the Internet, you need to first run the Setup Wizard with the Internet Download Setup option. The wizard will create a .CAB file containing required components, as well as sample HTML shown in Listing 21.1 that shows you how to include your document on a Web page. It also creates a SUPPORT directory with the components in the .CAB file, should you need to modify anything. |
|
|
|
|
|